package jwr.basic;

public class J17_Product implements J17_ProductService{
	
	private J17_ProductVO[] pData = new J17_ProductVO[100]; //1번
	private int pos = -1;
	
	public boolean addProduct(J17_ProductVO p) {// 2번
		pData[++pos] = p; 
		return true;
	}

	public String readProDuct() { //3번
		String result = "";
		J17_ProductVO pvo;
		for(int i = 0; i<= pos ; i++){
			pvo = pData[i];
			result += pvo.toString()+"\n";
		} // for
		return result;
	} // readProDuct
	
} //class
